Wireless Networking¶
If you have a USB wireless dongle or a Raspbery Pi 3 you can use this guide to connect your Raspberry Pi to your wireless network.
Step 1 - Access the command line¶
Plug in your keyboard before powering on your Raspberry Pi.
Also plug in your USB wireless dongle (if not using a Raspberry Pi 3).
Once booted, exit the PES GUI to access the command line.
Step 2 - Create WPA supplicant configuration¶
Create /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
sudo nano -w /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
Note
If you have not used nano
before, use the arrow keys on your keyboard to move between lines and press Crtl + X
to exit. Select Y
to save any changes.
Add the following contents:
network={
ssid="NETWORK_NAME"
psk="WIFI_PASSWORD"
}
Change NETWORK_NAME
to the name (SSID) of your wireless network and change WIFI_PASSWORD
to the password for your wireless network.
Step 3 - Create systemd network file¶
Create /etc/systemd/network/wlan0.network
, e.g. by using nano
:
sudo nano -w /etc/systemd/network/wlan0.network
Add the following contents:
[Match]
Name=wlan0
[Network]
DHCP=yes
DNSSEC=no
Step 4 - Apply your network settings¶
sudo systemctl start wpa_supplicant@wlan0
Check that the interface started ok:
sudo systemctl status wpa_supplicant@wlan0
If you run the ifconfig wlan0
command you should also see that your wlan0
interface has started and has been assigned an IP address.
[pi@pes ~]$ ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.11 netmask 255.255.255.0 broadcast 192.168.0.255
ether aa:bb:cc:dd:e1:f2 txqueuelen 1000 (Ethernet)
RX packets 2785 bytes 205718 (200.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 457 bytes 72580 (70.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
If your interface has not come up please try running sudo systemctl status wpa_supplicant@wlan0
to see what errors occurred when bringing up the interface.
If the interface has started ok, then enable it at boot time:
sudo systemctl enable wpa_supplicant@wlan0
The interface will now start at boot time.
If at any point you want to disable the wireless network adapter at boot time, then run:
sudo systemctl disable wpa_supplicant@wlan0
Step 5 - Start PES¶
Now to start the PES GUI again run:
/opt/pes/bin/pes.sh
Or alternatively, reboot:
sudo reboot